//
//  MyAdvisoryOrderFinishDiagnoseCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/4/11.
//  Copyright © 2020 QDSG. All rights reserved.
//

import UIKit

class MyAdvisoryOrderFinishDiagnoseCell: UITableViewCell {
    
    func updateData(vm: MyAdvisoryOrderFinishViewModel) {
        infoLabel.text = vm.patientInfo
        descriptionLabel.text = vm.descriptionInfo
        diagnoseLabel.text = vm.mainDiagnosis
        adviseLabel.text = vm.docProposal
        timeLabel.text = vm.endTime
    }
    
    func updateForRegistration(doctorVm: DoctorDetailViewModel, scheduleVm: DoctorScheduleViewModel, registrationListVm: CloudReserveDateListViewModel) {
        infoTitleLabel.text = "就诊科室"
        descriptionTitleLabel.text = "预约医生"
        diagnoseTitleLabel.text = "就诊日期"
        adviseTitleLabel.text = "候诊时间"
        timeTitleLabel.text = "号源价格"
        infoLabel.text = scheduleVm.departmentName
        descriptionLabel.text = doctorVm.doctorName
        diagnoseLabel.text = scheduleVm.scheduleTime
        adviseLabel.attributedText = registrationListVm.scheduleTimeText()
        timeLabel.text = scheduleVm.regFee + "元"
        timeLabel.textColor = .warning
    }
    
    @IBOutlet weak var infoLabel: UILabel!
    @IBOutlet weak var descriptionLabel: UILabel!
    @IBOutlet weak var diagnoseLabel: UILabel!
    @IBOutlet weak var adviseLabel: UILabel!
    @IBOutlet weak var timeLabel: UILabel!
    
    
    @IBOutlet weak var infoTitleLabel: UILabel!
    @IBOutlet weak var descriptionTitleLabel: UILabel!
    @IBOutlet weak var diagnoseTitleLabel: UILabel!
    @IBOutlet weak var adviseTitleLabel: UILabel!
    @IBOutlet weak var timeTitleLabel: UILabel!
    

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
